package com.william.javacodelibrary;

import java.util.EnumSet;
import java.util.Set;

public class WatercolorSet {
	public static void main(String[] args) {
		Set<Watercolors> set1 = EnumSet.range(Watercolors.BRILLIANT_RED, Watercolors.VIRIDIAN_HUE);
		Set<Watercolors> set2 = EnumSet.range(Watercolors.CERULEAN_BLUE_HUE, Watercolors.BURNT_UMBER);
		System.out.println("set1:"+set1);
		System.out.println("set2:"+set2);
		System.out.println("Union (set1,set2):" + Sets.union(set1, set2));
	}
}
